package com.java.project1;

import java.io.Serializable;

public class Serperson implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 7541168164487669530L;
	/**
	 * @return the serialversionuid
	 */
	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	private String name;
	private int age;
	
	/**
	 * @param name
	 * @param age
	 */
	public Serperson(String name, int age) {
		this.name = name;
		this.age = age;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the age
	 */
	public int getAge() {
		return age;
	}

	/**
	 * @param age the age to set
	 */
	public void setAge(int age) {
		this.age = age;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "Serperson [name=" + name + ", age=" + age + "]";
	}

    
}
